package cn.bookcycle.panda.user.service.Impl;

import cn.bookcycle.panda.user.dao.UserDao;
import cn.bookcycle.panda.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Mason
 * @date 2018/3/27
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;
    @Override
    public Object getUserById(String userId){
        return userDao.getUserById(userId);
    }

    @Override
    public boolean updateUser(Object userDO) {
        return userDao.updateUser(userDO);
    }

    @Override
    public boolean saveUser(Object userDO){
       return userDao.saveUser(userDO);
    }
    @Override
    public List listUser(Object userDO){
        return userDao.listUser(userDO);
    }
}
